//
//  CYTextField.h
//  CaiYun
//
//  Created by 今日信息科技 on 2017/7/1.
//  Copyright © 2017年 今日信息科技. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CYTextFieldDelegate <UITextFieldDelegate>
/**
 * @pragma height < 0 textfield被keyboard挡住，height > 0 textfield没有被keyboard挡住
 */
- (void)heightWhenKeyboardChange:(CGFloat)height animationInterval:(float)time;

@end
@interface CYTextField : UITextField
@property (nonatomic, strong) NSString *detail_placeholder;//阴影文本补充说明
@property (nonatomic, assign) CGFloat detail_placeholder_size;//阴影文本补充说明的字体
@property (nonatomic, strong) UIColor *detail_placeholder_color;//阴影文本补充说明字体颜色
@property (nonatomic, strong) CYView *line;//下划线
@property (nonatomic, weak) id<CYTextFieldDelegate>cydelegate;

- (instancetype)initWithPlaceholder:(NSString *)placeholder;
/**
 *@pragma 适配银行转账，填写资料
 */
- (instancetype)initWithPlaceholder:(NSString *)placeholder color:(UIColor *)color size:(CGFloat)size;
- (instancetype)initWithLeftImage:(NSString *)image Placeholder:(NSString *)placeholder;
- (void)setupRightview:(NSString *)imageName;
- (void)hiddenDetailPlaceholderLBL:(BOOL)ishidden;
@end
